import request from '@/utils/request'
// 发布文章
export const addArticleAPI = obj => {
  return request.post('/my/article/add', obj)
}

// 获取文章列表数据
// 调用方法的时候，会传递请求参数过来 { pagenum: 1, pagesize: 2, cate_id: 1, state: 'xxx' }
export const getArticleAPI = obj => {
  return request.get('/my/article/list', { params: obj })
}

// 删除文章
export const deleteArticleAPI = id => {
  return request.delete('/my/article/info', { params: { id } })
}
